package com.nbcio.modules.erp.inventory.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 库存台账实体
 */
@Data
@TableName("erp_inv_ledger")
public class ErpInvLedger {
    @TableId
    private Long ledgerId;
    private LocalDateTime bizTime;
    private String billType;
    private Long billId;
    private String billNo;
    private String ioType; // IN / OUT
    private Long orgId;
    private Long warehouseId;
    private Long materialId;
    private Long lotId;
    private Long serialId;
    private String binCode;
    private BigDecimal qtyIn;
    private BigDecimal qtyOut;
    private BigDecimal amountIn;
    private BigDecimal amountOut;
    private BigDecimal taxAmount;
    private BigDecimal unitCostAfter;
    private String costMethod;
    private LocalDateTime createTime;
}

